package com.itfreer.special.index;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itfreer.form.api.BaseRestService;
import com.itfreer.form.api.BaseService;

import io.swagger.annotations.Api;

/**
 * 定义目录Rest服务接口
 */
@RestController
@RequestMapping("/indexclumn")
@Api("目录")
public class RestIndexClumnService extends BaseRestService<IndexClumnEntity> {
	
	@Autowired(required = false)
	private IndexClumnService service;

	@Reference(lazy = true, check = false)
	private IndexClumnService dubboService;

	@Override
	protected BaseService<IndexClumnEntity> getService() {
		if (service == null) {
			return dubboService;
		} else {
			return service;
		}
	}
}
